package com.nuc.bigdata.orm.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.nuc.bigdata.orm.entity.PhotoNewsPicture;
import org.apache.ibatis.annotations.Param;

import java.util.ArrayList;

/**
 * @author JackLuo
 * @date 2019/11/26
 */
public interface PhotoNewsPictureMapper extends BaseMapper<PhotoNewsPicture> {
    ArrayList<PhotoNewsPicture> listAllNewsPicture(@Param("pnId")String pnId);

    /**
     * 删除指定图片
     * @param pnId 图片资讯详情
     * @param pictureId 图片唯一标识
     */
    void deleteNewsPicture(@Param("pnId") String pnId,
                           @Param("pictureId") String pictureId);


    /**
     * 删除指定自选下的所有图片
     * @param pnId
     */
    void deleteByPnId(@Param("pnId") String pnId);
}
